package vendingMachine.inventory;

public class Item
{ 
  double price;
  String description;
  int quantity;
  int ID;
  int row;
  int column;

  public Item()
  {
    price = 0;
    description = "";
    quantity = 0;
    ID = 0;
    row = 0;
    column = 0;
  }

  public Item(int theID)
  {
    price =0;
    description = "";
    quantity = 0;
    ID = theID;
    row = 0;
    column = 0;
  }  
  
  public Item(int theID, String theDescription, double thePrice)
  {
    price = thePrice;
    description = theDescription;
    quantity = 0;
    ID = theID;
    row = 0;
    column = 0;
  }
  
  public Item(int theID, String theDescription, double thePrice, int theQuantity)
  {
    price = thePrice;
    description = theDescription;
    quantity = theQuantity;
    ID = theID;
    row = 0;
    column = 0;
  }
  public Item(int theID, String theDescription, double thePrice,
      int theQuantity, int theColumn, int theRow)
  {
    price = thePrice;
    description = theDescription;
    quantity = theQuantity;
    ID = theID;
    row = theRow;
    column = theColumn;
  }

  public int getColumn()
  {
    return column;
  }

  public void setColumn(int column)
  {
    this.column = column;
  }

  public String getDescription()
  {
    return description;
  }

  public void setDescription(String description)
  {
    this.description = description;
  }

  public int getID()
  {
    return ID;
  }

  public void setID(int id)
  {
    ID = id;
  }

  public double getPrice()
  {
    return price;
  }

  public void setPrice(double price)
  {
    this.price = price;
  }

  public int getQuantity()
  {
    return quantity;
  }

  public void setQuantity(int quantity)
  {
    this.quantity = quantity;
  }

  public int getRow()
  {
    return row;
  }

  public void setRow(int row)
  {
    this.row = row;
  }

  public String toString()
  {
    String theString = "";
    theString = theString + "Description: " + getDescription() + ", ";
    theString = theString + "Price: " + getPrice() + ", ";
    theString = theString + "ID: " + getID() + ", ";
    //theString = theString + "Quantity: " + getQuantity() + ", ";

    return theString;
  }
}
